package com.atguigu.serviceBase.exception;

/**
 * 自定义注解
 *
 * @author Summerday
 */

public class GuliException extends RuntimeException {


    private Integer code;

    public GuliException() {
    }

    public GuliException(String message, Integer code) {
        super(message);
        this.code = code;
    }

    public GuliException(String message) {
        this(message, 500);
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }
}
